package com.lipaluma.annotations.adaptors.collections;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Truncate the entry value until max size and can add a suffix after the truncate.
 * @author Mario
 */
@Documented
@Inherited
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface TruncateOnEachValue {
	/**
	 * max size of the value extracted
	 */
	int maxSize();
	
	/**
	 * suffix appended if the truncate is done
	 */
	String suffix() default "";
}
